package com.example.javabasic.thread.classtwo.workthread.demo1;

public class Test {
    public static void main(String[] args) {
        //创建通道
        Channel channel = new Channel(1);
        //启动工作
        channel.startWorker();
        //创建10个生产厂家
        for (int i = 0; i < 2; i++) {
            new TransportThread("厂家->"+i,channel).start();
        }



    }
}
